Repository navigation
fix(id-worlds): don't fold allowed provider uses into replayed grants - #10896
Merged
Merged
Conversation
CapLedger::decide_for returns Allow only for a name already granted or covered by a `*` grant, and never inserts the name. replay_grants folded `allowed` uses into `granted`, so a wildcard-covered use stayed granted after `*` was revoked. Only `first_use_grant` changes state now. Fixes #10828 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 17, 2026 01:36
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: audit replay folded every
allowedprovider use into the granted set. With a*grant, usingtime.nowand then revoking*replayed to{time.now}, while the live ledger held{}.After: only a
first_use_grantuse adds a capability on replay, matchingCapLedger::decide_for, which never inserts a name on a plainAllow.How: one-line change to the outcome match in
replay_grants, doc comment updated, and a test that grants*, usestime.nowand revokes*, expecting an empty grant set.cargo test -p id-worlds --lib replaypasses (34 tests, including the generated live-vs-replay test).Fixes #10828
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.